package com.youi.service;

import com.youi.entity.Merchantwithdraw;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface MerchantwithdrawService extends BaseService<Merchantwithdraw> {

    /**
     * 获取对账单相关信息
     *
     * @param merchantwithdrawList
     */
    public void getMerchantwithdrawMsg(List<Merchantwithdraw> merchantwithdrawList);

    /**
     * 获取对账单相关信息
     *
     * @param merchantwithdraw
     */
    public void getMerchantwithdrawMsg(Merchantwithdraw merchantwithdraw);

    /**
     * 平台导出对账单
     *
     * @param request
     * @param merchantwithdrawList
     * @return
     */
    public void platformToExcelMerchantwithdraw(HttpServletRequest request, List<Merchantwithdraw> merchantwithdrawList);

    /**
     * 商家导出对账单
     *
     * @param request
     * @param merchantwithdrawList
     * @return
     */
    public void merchantToExcelMerchantwithdraw(HttpServletRequest request, List<Merchantwithdraw> merchantwithdrawList);

    /**
     * 修改订单商家提现状态
     *
     * @param merchantwithdraw
     * @param status           审核状态(-1作废 1通过)
     * @param type             审批类型(0供应商审批 1平台审核)
     * @return
     */
    public Integer updateUserordeMerchantWithdraw(Merchantwithdraw merchantwithdraw, Integer status, Integer type);

    /**
     * 获取商户提现列表
     *
     * @param param
     * @return
     */
    List<Map<String, Object>> listMerchantWithdrawData(Map<String, Object> param);
}